package com.example.rlw.mvpplugintest.login;

import com.example.rlw.mvpplugintest.bean.UserBean;
import com.example.rlw.mvpplugintest.mvp.BasePresenter;
import com.example.rlw.mvpplugintest.mvp.BaseView;
import com.example.rlw.mvpplugintest.mvp.CallBack;
import com.example.rlw.mvpplugintest.net.HttpResponseData;

import java.util.List;

import io.reactivex.Observable;

public class LoginContract {
    interface View extends BaseView {
        /**
         * 登录成功
         *
         * @param user
         */
        void loginSuccess(List<UserBean> user);
    }

    interface Presenter extends BasePresenter<View> {
        /**
         * 登录的方法
         *
         * @param userName
         * @param userPwd
         */
        void login(String userName, String userPwd);

    }

    interface LoginModel {
        Observable<HttpResponseData<List<UserBean>>> login(String userName, String userPwd);

//        void login(String userName, String userPwd, CallBack<List<UserBean>> callBack);
    }

}
